<ion-nav-bar class="nav-title-slide-ios7 button-positive">
  <div class="bar bar-header bar-assertive item-icon-right" style="z-index: 100">
    <h1 class="title">修改密码</h1>
  </div>
</ion-nav-bar>

<ion-view title="修改密码">
  <ion-content>
    <div class="modifyPwd">
      <form novalidate ng-submit="vm.modifyPwd()">
        <div class="list list-inset">
          <div class="modifyPwd-form" style="text-align: center;margin-bottom: 30px">
            <div>
              <span style="position: absolute;top:1px;left:20px;color: #999999">用户:</span>
              <div style="margin-top:20px;color:#DA251c;font-size: 26px" >{{vm.form.mobile}}</div>
            </div>
          </div>
          <div class="modifyPwd-form">
            <div class="item item-input input-wrap">
              <i class="icon ion-search placeholder-icon input-icon"></i>
              <input autocomplete="off" type="password" class="modify-input" ng-model="vm.form.password" name="password"
                     required="required"
                     placeholder="请输入原密码" ng-blur="vm.checkPassword();" required>
            </div>
          </div>
          <div class="modify-error">
            <span>{{vm.form.passwordMessage}}</span>
          </div>
          <div class="modifyPwd-form">
            <div class="item item-input input-wrap">
              <i class="icon ion-search placeholder-icon input-icon"></i>
              <input type="password" class="modifyPwd-input" ng-model="vm.form.newPwd" name="newPwd" ng-minlength="6"
                     required="required"
                     check-is-password placeholder="输入新密码">
            </div>
            <!--<div>-->
              <!--<span style="color:red" ng-show="modifyPwdForm.newPwd.$invalid && modifyPwdForm.newPwd.$dirty">此项为必填项,密码长度不小于6位数且不能为纯数字</span>-->
            <!--</div>-->
          </div>

          <div class="modifyPwd-form">
            <div class="item item-input input-wrap">
              <i class="icon ion-search placeholder-icon input-icon"></i>
              <input type="password" class="modifyPwd-input" ng-model="vm.form.confirmPwd" name="confirmPwd" ng-minlength="6"
                     required="required"
                     check-is-password placeholder="请确认密码" ng-blur="vm.checkNewPwd();">
            </div>
          </div>
          <div class="modify-error">
            <span>{{vm.form.modifyPwdMessage}}</span>
          </div>

          <div style="margin-top: 30px">
            <button type="submit" class="button button-block button-assertive bt-font">确认修改</button>
          </div>
        </div>
      </form>
    </div>
  </ion-content>
</ion-view>
